package com.joezhou.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * @author JoeZhou
 */
@Slf4j
@Data
@AllArgsConstructor
public class Cat implements Serializable {
    private Integer id;
    private String name;
    private Integer gender;
    private Integer age;
    private String info;

    public Cat(){
        log.info("Cat类被实例化...");
    }

    public Cat(String name){
        this.name = name;
    }

    public void init(){
        log.info("Cat类初始化...");
    }

    public void destroy(){
        log.info("Cat类被销毁...");
    }
}